package com.example.extra.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author lixiang
 */
@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {

    private String secret;
    private Integer expiration;
    private RefreshToken refreshToken;

    @Data
    public static class RefreshToken {
        private Integer expiration;
    }

}
